import request from '@/utils/request'

export default {

  pageQueryType(current, size, query) {
    return request({
      url: `/dictionaryType/pageQuery/${current}/${size}`,
      method: 'post',
      data: query
    })
  },
  saveType(type){
    return request({
      url: `/dictionaryType/saveType/`,
      method: 'post',
      data: type
    })
  },
  deleteType(id){
    return request({
      url: `/dictionaryType/${id}`,
      method: 'delete',
    })
  },
  deleteTypeBatch(ids){
    return request({
      url: `/dictionaryType/deleteBatch`,
      method: 'post',
      data:ids
    })
  },
  pageQueryDetail(current, size, query,id) {
    return request({
      url: `/dictionaryDetail/pageQuery/${current}/${size}/${id}`,
      method: 'post',
      data: query
    })
  },
  saveDetails(details){
    return request({
      url: `/dictionaryDetail/saveDetail/`,
      method: 'post',
      data: details
    })
  },
  deleteDetails(id){
    return request({
      url: `/dictionaryDetail/${id}`,
      method: 'delete',
    })
  },

}
